<template>
	<view class="content">
		<view class="line" @click="goUs">
			<view class="lineName">关于我们</view>
			<image src="/static/img/icon_arrow_right.png" mode="" class="jtImg"></image>
		</view>
		<view class="line" @click="goagreement">
			<view class="lineName">用户协议</view>
			<image src="/static/img/icon_arrow_right.png" mode="" class="jtImg"></image>
		</view>
		<!-- <view class="line" @click="goUp">
			<view class="lineName">修改个人资料</view>
			<image src="/static/img/icon_arrow_right.png" mode="" class="jtImg"></image>
		</view> -->
		<view class="line" @click="clearHc">
			<view class="lineName">退出登录</view>
			<image src="/static/img/icon_arrow_right.png" mode="" class="jtImg"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
            goUs(){
				uni.navigateTo({
					url:'aboutUs'
				})
			},
			goUp(){
				uni.navigateTo({
					url:'up'
				})
			},
			goagreement(){
				uni.navigateTo({
					url:'agreement'
				})
			},
			clearHc(){
				uni.showModal({
				  title: '提示',
				  content: '确定要退出登录吗？',
				  success: (res) => {
				    if (res.confirm) {
				      uni.showLoading({ title: '正在退出...' })
							uni.clearStorageSync();
				      // 这里调用退出登录接口
				      setTimeout(() => {
				        uni.reLaunch({
				          url: '../index/login'
				        })
				      }, 1000)
				    }
				  }
				})
			}
		}
	}
</script>

<style scoped>
.line{
	display: flex;justify-content: space-between;
	padding: 30rpx 20rpx;
	border-bottom: 1px solid #eee;
	color: #333333;
}
.jtImg{
	width: 12rpx;height: 20rpx;
}
</style>
